// 渲染
$.ajax({
  url:'http://127.0.0.1:9090/api/getinlanddiscount',
  dataType:'json',
  success:function(info) {
    console.log(info);
    $('.discount-list').html(template('tmp',info));
  }
})